package com.ytf.test.tenth;

/**
 * @author: YTF
 * @date: 2025/3/27
 * @version: 1.0
 * @description:
 */
public class Parcel11 {
    private static class ParcelContents implements Contents {

        @Override
        public int value() {
            return 11;
        }
    }
    protected static class ParcelDestination implements Destination {
        String label;
        public ParcelDestination(String label) {
            this.label = label;
        }

        @Override
        public String readLabel() {
            return label;
        }
    }
    public static Contents getContents(){
        return new ParcelContents();
    }
    public static Destination getDestination(String label){
        return new ParcelDestination(label);
    }
    public static void main(String[] args) {
        Contents contents = getContents();
        Destination destination = getDestination("Destination");
        System.out.println(destination.readLabel());
    }
}
